import type { Mapping, Option } from "@/components/ProFrom/ProFrom.vue";

import { useGlobalStore } from "@/stores";
const { dictionary } = useGlobalStore();

export const queryFormMap: Mapping[] = [
  { label: "值班人员", type: "input", prop: "name", col: 4 },
];

export const editFormMap = [
  {
    label: "姓名",
    type: "input",
    prop: "name",
  },
  {
    label: "性别",
    type: "select",
    prop: "gender",
    options: dictionary.gender,
  },
  {
    label: "工作单位",
    type: "input",
    prop: "workUnit",
  },
  {
    label: "联系方式",
    type: "input",
    prop: "phone",
  },
  {
    label: "所属处室",
    type: "input",
    prop: "inOffice",
  },
].map((e) => ({ ...e, required: true })) as Mapping[];
